﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Signup.aspx.cs" Inherits="WeakEndForum.Inscription" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
        <div class="container">
            <div>
                <div class="page-header">
                    <span class="h2 RalewayFont"><span class="glyphicon glyphicon-user"></span> Inscription</span>
                </div>
                <asp:Label ID="lblErrors" runat="server" />
                <div class="form-group">
                    <asp:RequiredFieldValidator ID="reqFieldValidUsername" ValidationGroup="frmSignupGroup" Display="None" ErrorMessage="Un nom d'utilisateur est requis." ControlToValidate="txtUsername" runat="server" />
                    <asp:Label ID="lbUsername" runat="server" Text="Nom d'utilisateur"></asp:Label>
                    <asp:TextBox ID="txtUsername" ValidationGroup="frmSignupGroup" CssClass="form-control signupInputs" placeholder="Nom d'utilisateur" runat="server"></asp:TextBox>
                </div>
                <div class="form-group">
                    <asp:RequiredFieldValidator ID="reqFieldValidPassword" ValidationGroup="frmSignupGroup" Display="None" ErrorMessage="Un mot de passe est requis." ControlToValidate="txtPassword" runat="server" />
                    <asp:Label ID="lbPassword" runat="server" Text="Mot de passe"></asp:Label>
                    <asp:TextBox TextMode="Password" ValidationGroup="frmSignupGroup" CssClass="form-control signupInputs" ID="txtPassword" placeholder="Mot de passe" runat="server"></asp:TextBox>
                </div>
                <div class="form-group">
                    <asp:RequiredFieldValidator ID="reqFieldValidEmail" ValidationGroup="frmSignupGroup" Display="None" ErrorMessage="Une adresse courriel est requise." ControlToValidate="txtEmail" runat="server" />
                    <asp:Label ID="lbEmail" runat="server" Text="Adresse courriel"></asp:Label>
                    <asp:TextBox ID="txtEmail" ValidationGroup="frmSignupGroup" CssClass="form-control signupInputs" placeholder="Adresse courriel" runat="server"></asp:TextBox>
                </div>
                <div class="form-group">
                    <asp:Label ID="lbFu" runat="server" Text="Image d'Avatar"></asp:Label>
                    <asp:FileUpload ID="fuAvatar" ValidationGroup="frmSignupGroup" runat="server"/>
                    <asp:Label ID="lblInfo" runat="server" Text="(L'image ne doit pas dépasser 180x180 pixels)"></asp:Label>
                </div>
                <asp:ValidationSummary ID="validSummSignupForm" CssClass="alert alert-warning" ValidationGroup="frmSignupGroup" DisplayMode="BulletList" runat="server" />
                <asp:Button ID="btnSubmit" ValidationGroup="frmSignupGroup" CssClass="btn btn-primary" runat="server" Text="Soumettre" />
                <asp:CustomValidator ID="customValidSignupForm" ValidationGroup="frmSignupGroup" ErrorMessage="Un usager existe déjà sous le même nom d'utilisateur ou l'adresse courriel spécifiés." OnServerValidate="customValidSignupForm_ServerValidate" runat="server" />
            </div>
        </div>
</asp:Content>
